package org.yoao.crm.bean;

public class User {
	private int id; //自增ID
	private String userName;//用户名,唯一
	private String nickName;//昵称
	private String passWord;//密码
	private String role;//权限
	private String accessSno;//所有父角色
	private String phone;//电话
	private String address;//地址
	private String companyId;//公司ID
	private String position;//职位
	private String createTime;//创建时间
	private int isAudit;//是否审核
	
	public int getIsAudit() {
		return isAudit;
	}
	public void setIsAudit(int isAudit) {
		this.isAudit = isAudit;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassWord() {
		return passWord;
	}
	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	public String getAccessSno() {
		return accessSno;
	}
	public void setAccessSno(String accessSno) {
		this.accessSno = accessSno;
	}
	public String getNickName() {
		if(nickName == null || "null".equals(nickName)) nickName = "";
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getPhone() {
		if("".equals(phone)) phone = null;
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getAddress() {
		if(address == null || "null".equals(address)) address = "";
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getCompanyId() {
		if(companyId == null || "null".equals(companyId)) companyId = "";
		return companyId;
	}
	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}
	public String getPosition() {
		if(position == null || "null".equals(position)) position = "";
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public String getCreateTime() {
		if(createTime == null || "null".equals(createTime)) createTime = "";
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
}